﻿using DAL;
using MODEL;

namespace BLL
{
    public class MemberBLL
    {
        public MemberBLL(MemberDAL dAL)
        {
            DAL = dAL;
        }

        public MemberDAL DAL { get; }

        //注册
        public int MemberAdd(MemberMODEL member)
        {
            try
            {
                return DAL.MemberAdd(member);
            }
            catch (Exception)
            {

                throw;
            }
        }

        //登录
        public int MemberLogin(string card, string pwd)
        {
            try
            {
                return DAL.MemberLogin(card, pwd);
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
